package com.epfresh.api.entity;

import com.google.gson.GsonBuilder;

/**
 * Created by wzh on 2016/3/24.
 */
public class ResponseError {
    private int errorCode;
    private String errorInfo;

    private transient int errorType;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public int getErrorType() {
        return errorType;
    }

    public void setErrorType(int errorType) {
        this.errorType = errorType;
    }

    @Override
    public String toString() {
        return new GsonBuilder().create().toJson(this);
    }
}
